package com.jiyongjun.component.condition;

import org.springframework.context.annotation.Conditional;

import java.lang.annotation.*;

/**
 * <h2></h2>
 * <h3>描述：</h3>
 *
 * @author yongjun.jyj
 * @since 2022/7/14 23:24
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@Documented
@Conditional(SetPropertyCondition.class)
public @interface ConditionalOnSetProperty {
    String prefix() default "";

    String name();

    String contains() default "";

    String unContains() default "";

    boolean matchIfMissing() default true;

}
